set(CMARK_TESTS OFF CACHE BOOL "" FORCE)
set(CMARK_SHARED OFF CACHE BOOL "" FORCE)

add_subdirectory(cmark)
target_include_directories(libcmark_static INTERFACE
  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/cmark/src>
  $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/cmark/src>
)
